package com.classroom_exercises;
//测试类
public class SwinText {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.swin();
        dog.lookHome();
        dog.eat();
        dog.drink();

        System.out.println("------");

        Chick chick = new Chick();
        chick.layEggs();
        chick.eat();
        chick.drink();

        System.out.println("------");

        Fish fish = new Fish();
        fish.eat();
        fish.drink();
    }
}
